Re: [PATCHES] Updatable views

Поиск
Список
Период
Сортировка
От Bernd Helmle
Тема Re: [PATCHES] Updatable views
Дата
Msg-id B8C0BF3F20C4EC5B8C9771AB@[172.26.14.247]
обсуждение исходный текст
Ответ на Re: [PATCHES] Updatable views  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
--On Freitag, September 01, 2006 11:34:49 -0400 Alvaro Herrera 
<alvherre@commandprompt.com> wrote:

> I don't understand this part very well.  Say if you have a view WITH
> CHECK OPTION whose condition is "foo > 5", and then define a view WITH
> LOCAL CHECK OPTION on top of that, whose condition is "bar > 5".  Does
> the local check option on the second view that I can insert a row with
> foo=4, bar=6?  That doesn't violate the condition of bar > 5, so it
> seems fine to me.  But it also seems quite idiotic because it violated
> the original foo>5 condition.

That's exactly what i'm reading out there, too. If such a view definition 
is useful or not
depends on its use case. Correct me if i'm wrong....

--  Thanks
                   Bernd


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Jaime Casanova"
Дата:
Сообщение: Re: [PATCHES] Updatable views
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Getting a move on for 8.2 beta